import {ThemedView} from '@/components/ThemedView';
import {TouchableOpacity} from "react-native";
import * as React from 'react';
import {Image, Text, View} from "react-native-ui-lib";
import {SafeAreaView} from "react-native-safe-area-context";
import {StatusBar} from "expo-status-bar";
import {HomeCarousel} from "@/app/home/HomeCarousel";
import {HomeMenuList} from "@/app/home/HomeMenuList";
import {GridMenu} from "@/app/home/GridMenu";
import {LiveYuGaoView} from "@/app/news/LiveYuGaoView";


const IMAGES = [
    'https://images.pexels.com/photos/2529159/pexels-photo-2529159.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
    'https://images.pexels.com/photos/2529146/pexels-photo-2529146.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
    'https://images.pexels.com/photos/2529158/pexels-photo-2529158.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500'
];
const menuData = [
    { name: '自选股', imageUrl: 'http://example.com/icon1.png' },
    { name: '资金流向', imageUrl: 'http://example.com/icon2.png' },
    { name: '选股', imageUrl: 'http://example.com/icon3.png' },
    // 添加更多菜单项
];

function HomeScreen() {
    const [expanded, setExpanded] = React.useState(true);
    const handlePress = () => setExpanded(!expanded);

  return (
       <SafeAreaView style={{flex: 1}}>
           <StatusBar translucent={true}></StatusBar>
           <ThemedView style={{flex: 1, gap: 16, padding: 16, alignItems: 'center'}}>
               <Text>我是首页</Text>
                <LiveYuGaoView/>
               {HomeMenuList()}

           </ThemedView>
       </SafeAreaView>
  );
}


export default HomeScreen;
